<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>扩展选择器</title>
  <style>
    div p{
      color: blue;
    }
    div > p{
      border: 1px solid;
    }
    
    input[type="text"]{
      border: 5px solid;
    }
    
    a:link{
      color: coral;
    }
    a:hover{
      color: blueviolet;
    }
    
    a:active{
      color: aqua;
    }
    
    a:visited{
      color: brown;
    }
  </style>
</head>
<body>
  <div>
    <p>llll</p>
  </div>
  <p>hhhhhh</p>
  <div>ggggg</div>
  <input type="text">
  <input type="password">
  <br>
  <a href="#" >124</a>
</body>
</html>